package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 项目决策信息：性格特征
 *
 * @Author: hongxiao
 * @date: 2021-11-16 20:44
 */
@Getter
public enum DecisionInfoCharacterTraitsEnum {
    // 远见
    FORESIGHT("1", "enum.decisionInfoCharacterTraits.name.foresight", "foresight", "#52C41A"),
    // 创新
    INNOVATE("2", "enum.decisionInfoCharacterTraits.name.innovate", "innovate", "#1677FF"),
    // 务实
    PRAGMATIC("3", "enum.decisionInfoCharacterTraits.name.pragmatic", "pragmatic", "#00BACF"),
    // 保守
    CONSERVATIVE("4", "enum.decisionInfoCharacterTraits.name.conservative", "conservative", "#FF5100"),
    // 落后
    BACKWARD("5", "enum.decisionInfoCharacterTraits.name.backward", "backward", "#FF3B30"),
    // 未知
    UNKNOWN("6", "enum.decisionInfoCharacterTraits.name.unknown", "unknown", "#722ED1"),
    ;

    private String code;
    private String name;
    private String attr;
    private String color;

    DecisionInfoCharacterTraitsEnum(String code, String name, String attr, String color) {
        this.code = code;
        this.name = name;
        this.attr = attr;
        this.color = color;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
